package com.enation.app.javashop.api.client;

import com.enation.app.javashop.model.system.dos.Message;
import com.enation.app.javashop.service.system.MessageManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author fk
 * @version v2.0
 * @Description:
 * @date 2018/8/15 10:11
 * @since v7.0.0
 */
@RestController
@RequestMapping("/client/message")
@ApiIgnore
public class MessageClientController {

    @Autowired
    private MessageManager messageManager;

    @GetMapping("/{id}")
    public Message get(@PathVariable("id") Long id) {

        return messageManager.get(id);
    }



}
